/**
 * @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see LICENSE.html or http://ckeditor.com/license
 */

CKEDITOR.editorConfig = function( config ) {
	// Define changes to default configuration here. For example:
	config.language = 'vi';
	// config.uiColor = '#AADC6E';

    // config ckfinder
//	url = 'http://maihoangjsc.com';
//
//	config.filebrowserBrowseUrl 		= url+'/themes/admin/js/editor/ckfinder/ckfinder.html';
//	config.filebrowserImageBrowseUrl 	= url+'/themes/admin/js/editor/ckfinder/ckfinder.html?type=Images';
//	config.filebrowserImageUploadUrl 	= url+'/themes/admin/js/editor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images';

    // Plugins
    config.extraPlugins = 'mediaembed';
    config.extraPlugins = 'autogrow';
    config.autoGrow_maxHeight = 400;
    //config.removePlugins = 'resize';

    // Toolbar
    config.toolbarGroups = [
        { name: 'document',    groups: [ 'mode', 'document', 'doctools' ] },
        { name: 'clipboard',   groups: [ 'clipboard', 'undo' ] },
        { name: 'editing',     groups: [ 'find', 'selection', 'spellchecker' ] },
        { name: 'forms' },
        { name: 'tools' },
        { name: 'insert' },
        { name: 'mediaembed' },
        { name: 'others' },
        { name: 'links' },
        { name: 'paragraph',   groups: [ 'list', 'indent', 'blocks' ] },
        '/',
        { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
        { name: 'styles' },
        { name: 'colors' },
        { name: 'align' },
        { name: 'about' }
    ];
};
